package com.feeyin.radar.crm.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.feeyin.radar.commons.DateUtils;

public class Customer
{
  private Integer id;
  private String customerCode;
  private String customerName;
  private String address;
  private String phone;
  private String fax;
  private Integer customerSourceId;
  private Date predictContract;
  private BigDecimal predictCost;
  private String requireDesc;
  private Integer industryId;
  private Integer areaId;
  private Integer outputValueId;
  private Integer companyTypeId;
  private String http;
  private Integer profitsId;
  private Integer employeeNumId;
  private String customerSimple;
  private String taxCode;
  private Integer bankDepositId;
  private String zip;
  private Integer isMarketId;
  private Integer isPurchaseId;
  private Integer customerTypeId;
  private Integer countryId;
  private Integer provinceId;
  private Integer cityId;
  private Integer subIndustryId;
  private Integer clusterId;
  private Integer scaleId;
  private String parentCompany;
  private Integer customParentId;
  private Integer customSublevelId;
  private Integer customTypeId1;
  private Integer customTypeId2;
  private Integer customTypeId3;
  private String customType4;
  private String customType5;
  private String customType6;
  private String customItem1;
  private String customItem2;
  private String customItem3;
  private String customItemId4;
  private String customItemId5;
  private String customItemId6;
  private String customerCategory;
  private String exceptionReason;
  private Integer salePersonId;
  private Integer linkmanNum;
  private Date lastLink;
  private String isNewAdd;
  private String isFollow;
  private String isShare;
  private Date createDate;
  private Date updateCustomerDate;
  private Date updateSaleStageDate;
  private Date updateSaleRecordDate;
  private BigDecimal historyContractCost;
  private Integer discardPersonId;
  private Integer restorePersonId;
  private Date restoreDate;
  private Integer saleStageId;
  private Integer deptId;
  private String presentRecord;
  private Integer marketPersonId;
  private Integer presentNum;
  private Date assignDate;
  private Integer createPersonId;
  private String saleStatus;
  private Date viewDate;
  private Integer customerId;
  private Integer updatePersonId;
  private Date updateDate;
  private String isPrimitive;
  private String updatePerson;
  private int pageStartRow;
  private int pageEndRow;
  private Date startDate;
  private Date endDate;
  private String salePerson;
  private Integer myCustomers;
  private Integer personId;
  private Integer personId2;
  private String isWrite;
  private String deptIds;
  private String deptIds2;
  private String deptIdsEx;
  private String shareSalePersons;
  private Integer currentUserId;
  private String saleStage;
  private String categorys;
  private Date agingDate;
  private Date agingCustomerDate;
  private Date agingSaleStageDate;
  private Date agingSaleRecordDate;
  private String discardPerson;
  private String marketPerson;
  private String isSaleStage;
  private Integer signCategory;
  private String searchCustomerName;
  private Integer isSaleRecord;
  private Integer isNotSaleRecord;
  private Integer linkNum;
  private Integer contractNum;
  private BigDecimal receivable;
  private BigDecimal invoiceCost;
  private BigDecimal saleCost;
  private List linkmans = new ArrayList();
  private List saleRecords = new ArrayList();
  private List saleRecordAddeds = new ArrayList();
  private Date startCreateDate;
  private Date endCreateDate;
  private Date startLastLinkDate;
  private Date endLastLinkDate;
  private String isOthersource;
  private BigDecimal startPredictCost;
  private BigDecimal endPredictCost;
  private Date startPredictContractDate;
  private Date endPredictContractDate;
  private String isNotHistoryContractCost;
  private String isSortLastLink;
  private SaleRecord saleRecord = new SaleRecord();
  private Date startLastLinkDate1;
  private Date endLastLinkDate1;
  private String createPerson;
  private String orderByViewDate;
  private String orderBySaleStageDate;
  private String orderByUpdateCustomerDate;
  private String orderByUpdateSaleRecordDate;
  private String sortRecord;
  private String sortWay;
  private BigDecimal totalcontractCost;
  private Integer contractCount;
  private BigDecimal totalcostValue;
  private String stageName;
  private BigDecimal avgContractCost;
  private String industryName;
  private String areaName;
  private String companyTypeName;
  private Integer industryCount;
  private Integer areaCount;
  private Integer companyType;
  private Integer newcustomercount;
  private Integer totalnewcustomercount;
  private String years;
  private String months;
  private String currentYear;
  private String monthName;
  private Integer saleStatusForSelect;
  private String salepersonName;
  private Date startcontractDate;
  private Date endcontractDate;
  private Date startbackDate;
  private Date endbackDate;
  private String backCostDesc;
  private Date nearDate;
  private Date nearUpdateDate;
  private Date nearUpdateSaleStageDate;
  private Date nearUpdateSaleRecordDate;
  private String contractCode;
  private Date contractDate;
  private BigDecimal contractCost;
  
  private MultipartFile contents;
  private String licenceUrl;
  
  public String getLicenceUrl() {
	return licenceUrl;
  }

  public void setLicenceUrl(String licenceUrl) {
	this.licenceUrl = licenceUrl;
  }

  public MultipartFile getContents() {
	return contents;
  }

  public void setContents(MultipartFile contents) {
	this.contents = contents;
  }

  public Date getNearUpdateSaleRecordDate()
  {
    return this.nearUpdateSaleRecordDate;
  }

  public void setNearUpdateSaleRecordDate(Date nearUpdateSaleRecordDate) {
    this.nearUpdateSaleRecordDate = nearUpdateSaleRecordDate;
  }
  public String getOrderByUpdateSaleRecordDate() {
    return this.orderByUpdateSaleRecordDate;
  }

  public void setOrderByUpdateSaleRecordDate(String orderByUpdateSaleRecordDate) {
    this.orderByUpdateSaleRecordDate = orderByUpdateSaleRecordDate;
  }

  public Date getNearUpdateSaleStageDate() {
    return this.nearUpdateSaleStageDate;
  }

  public void setNearUpdateSaleStageDate(Date nearUpdateSaleStageDate) {
    this.nearUpdateSaleStageDate = nearUpdateSaleStageDate;
  }
  public String getContractCode() {
    return this.contractCode;
  }

  public void setContractCode(String contractCode) {
    this.contractCode = contractCode;
  }

  public Date getContractDate() {
    return this.contractDate;
  }

  public void setContractDate(Date contractDate) {
    this.contractDate = contractDate;
  }

  public BigDecimal getContractCost() {
    return this.contractCost;
  }

  public void setContractCost(BigDecimal contractCost) {
    this.contractCost = contractCost;
  }

  public Date getNearUpdateDate() {
    return this.nearUpdateDate;
  }

  public void setNearUpdateDate(Date nearUpdateDate) {
    this.nearUpdateDate = nearUpdateDate;
  }

  public Date getNearDate() {
    return this.nearDate;
  }

  public void setNearDate(Date nearDate) {
    this.nearDate = nearDate;
  }

  public String getSalepersonName() {
    return this.salepersonName;
  }

  public void setSalepersonName(String salepersonName) {
    this.salepersonName = salepersonName;
  }

  public Date getStartcontractDate()
  {
    return this.startcontractDate;
  }

  public void setStartcontractDate(Date startcontractDate) {
    this.startcontractDate = startcontractDate;
  }

  public Date getEndcontractDate() {
    return this.endcontractDate;
  }

  public void setEndcontractDate(Date endcontractDate) {
    this.endcontractDate = endcontractDate;
  }

  public Date getStartbackDate() {
    return this.startbackDate;
  }

  public void setStartbackDate(Date startbackDate) {
    this.startbackDate = startbackDate;
  }

  public Date getEndbackDate() {
    return this.endbackDate;
  }

  public void setEndbackDate(Date endbackDate) {
    this.endbackDate = endbackDate;
  }

  public String getBackCostDesc() {
    return this.backCostDesc;
  }

  public void setBackCostDesc(String backCostDesc) {
    this.backCostDesc = backCostDesc;
  }

  public Integer getSaleStatusForSelect()
  {
    return this.saleStatusForSelect;
  }

  public void setSaleStatusForSelect(Integer saleStatusForSelect) {
    this.saleStatusForSelect = saleStatusForSelect;
  }

  public String getMonthName() {
    return this.monthName;
  }

  public void setMonthName(String monthName) {
    this.monthName = monthName;
  }

  public Integer getNewcustomercount() {
    return this.newcustomercount;
  }

  public void setNewcustomercount(Integer newcustomercount) {
    this.newcustomercount = newcustomercount;
  }

  public Integer getTotalnewcustomercount() {
    return this.totalnewcustomercount;
  }

  public void setTotalnewcustomercount(Integer totalnewcustomercount) {
    this.totalnewcustomercount = totalnewcustomercount;
  }

  public String getYears() {
    return this.years;
  }

  public void setYears(String years) {
    this.years = years;
  }

  public String getMonths() {
    return this.months;
  }

  public void setMonths(String months) {
    this.months = months;
  }

  public String getCurrentYear() {
    return this.currentYear;
  }

  public void setCurrentYear(String currentYear) {
    this.currentYear = currentYear;
  }
  public String getIndustryName() {
    return this.industryName;
  }

  public void setIndustryName(String industryName) {
    this.industryName = industryName;
  }

  public String getAreaName() {
    return this.areaName;
  }

  public void setAreaName(String areaName) {
    this.areaName = areaName;
  }

  public String getCompanyTypeName() {
    return this.companyTypeName;
  }

  public void setCompanyTypeName(String companyTypeName) {
    this.companyTypeName = companyTypeName;
  }

  public Integer getIndustryCount() {
    return this.industryCount;
  }

  public void setIndustryCount(Integer industryCount) {
    this.industryCount = industryCount;
  }

  public Integer getAreaCount() {
    return this.areaCount;
  }

  public void setAreaCount(Integer areaCount) {
    this.areaCount = areaCount;
  }

  public Integer getCompanyType() {
    return this.companyType;
  }

  public void setCompanyType(Integer companyType) {
    this.companyType = companyType;
  }

  public Integer getId()
  {
    return this.id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getCustomerCode() {
    return this.customerCode;
  }

  public void setCustomerCode(String customerCode) {
    this.customerCode = customerCode;
  }

  public String getCustomerName() {
    return this.customerName;
  }

  public void setCustomerName(String customerName) {
    this.customerName = customerName;
  }

  public String getAddress() {
    return this.address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  public String getPhone() {
    return this.phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public String getFax() {
    return this.fax;
  }

  public void setFax(String fax) {
    this.fax = fax;
  }

  public Integer getCustomerSourceId() {
    return this.customerSourceId;
  }

  public void setCustomerSourceId(Integer customerSourceId) {
    this.customerSourceId = customerSourceId;
  }

  public Date getPredictContract() {
    return this.predictContract;
  }

  public void setPredictContract(Date predictContract) {
    this.predictContract = predictContract;
  }

  public BigDecimal getPredictCost() {
    return this.predictCost;
  }

  public void setPredictCost(BigDecimal predictCost) {
    this.predictCost = predictCost;
  }

  public String getRequireDesc() {
    return this.requireDesc;
  }

  public void setRequireDesc(String requireDesc) {
    this.requireDesc = requireDesc;
  }

  public Integer getIndustryId() {
    return this.industryId;
  }

  public void setIndustryId(Integer industryId) {
    this.industryId = industryId;
  }

  public Integer getAreaId() {
    return this.areaId;
  }

  public void setAreaId(Integer areaId) {
    this.areaId = areaId;
  }

  public Integer getOutputValueId() {
    return this.outputValueId;
  }

  public void setOutputValueId(Integer outputValueId) {
    this.outputValueId = outputValueId;
  }

  public Integer getCompanyTypeId() {
    return this.companyTypeId;
  }

  public void setCompanyTypeId(Integer companyTypeId) {
    this.companyTypeId = companyTypeId;
  }

  public String getHttp() {
    return this.http;
  }

  public void setHttp(String http) {
    this.http = http;
  }

  public Integer getProfitsId() {
    return this.profitsId;
  }

  public void setProfitsId(Integer profitsId) {
    this.profitsId = profitsId;
  }

  public Integer getEmployeeNumId() {
    return this.employeeNumId;
  }

  public void setEmployeeNumId(Integer employeeNumId) {
    this.employeeNumId = employeeNumId;
  }

  public String getCustomerSimple() {
    return this.customerSimple;
  }

  public void setCustomerSimple(String customerSimple) {
    this.customerSimple = customerSimple;
  }

  public String getTaxCode() {
    return this.taxCode;
  }

  public void setTaxCode(String taxCode) {
    this.taxCode = taxCode;
  }

  public Integer getBankDepositId() {
    return this.bankDepositId;
  }

  public void setBankDepositId(Integer bankDepositId) {
    this.bankDepositId = bankDepositId;
  }

  public String getZip() {
    return this.zip;
  }

  public void setZip(String zip) {
    this.zip = zip;
  }

  public Integer getIsMarketId() {
    return this.isMarketId;
  }

  public void setIsMarketId(Integer isMarketId) {
    this.isMarketId = isMarketId;
  }

  public Integer getIsPurchaseId() {
    return this.isPurchaseId;
  }

  public void setIsPurchaseId(Integer isPurchaseId) {
    this.isPurchaseId = isPurchaseId;
  }

  public Integer getCustomerTypeId() {
    return this.customerTypeId;
  }

  public void setCustomerTypeId(Integer customerTypeId) {
    this.customerTypeId = customerTypeId;
  }

  public Integer getCountryId() {
    return this.countryId;
  }

  public void setCountryId(Integer countryId) {
    this.countryId = countryId;
  }

  public Integer getProvinceId() {
    return this.provinceId;
  }

  public void setProvinceId(Integer provinceId) {
    this.provinceId = provinceId;
  }

  public Integer getCityId() {
    return this.cityId;
  }

  public void setCityId(Integer cityId) {
    this.cityId = cityId;
  }

  public Integer getSubIndustryId() {
    return this.subIndustryId;
  }

  public void setSubIndustryId(Integer subIndustryId) {
    this.subIndustryId = subIndustryId;
  }

  public Integer getClusterId() {
    return this.clusterId;
  }

  public void setClusterId(Integer clusterId) {
    this.clusterId = clusterId;
  }

  public Integer getScaleId() {
    return this.scaleId;
  }

  public void setScaleId(Integer scaleId) {
    this.scaleId = scaleId;
  }

  public String getParentCompany() {
    return this.parentCompany;
  }

  public void setParentCompany(String parentCompany) {
    this.parentCompany = parentCompany;
  }

  public Integer getCustomParentId() {
    return this.customParentId;
  }

  public void setCustomParentId(Integer customParentId) {
    this.customParentId = customParentId;
  }

  public Integer getCustomSublevelId() {
    return this.customSublevelId;
  }

  public void setCustomSublevelId(Integer customSublevelId) {
    this.customSublevelId = customSublevelId;
  }

  public Integer getCustomTypeId1() {
    return this.customTypeId1;
  }

  public void setCustomTypeId1(Integer customTypeId1) {
    this.customTypeId1 = customTypeId1;
  }

  public Integer getCustomTypeId2() {
    return this.customTypeId2;
  }

  public void setCustomTypeId2(Integer customTypeId2) {
    this.customTypeId2 = customTypeId2;
  }

  public Integer getCustomTypeId3() {
    return this.customTypeId3;
  }

  public void setCustomTypeId3(Integer customTypeId3) {
    this.customTypeId3 = customTypeId3;
  }

  public String getCustomType4() {
    return this.customType4;
  }

  public void setCustomType4(String customType4) {
    this.customType4 = customType4;
  }

  public String getCustomType5() {
    return this.customType5;
  }

  public void setCustomType5(String customType5) {
    this.customType5 = customType5;
  }

  public String getCustomType6() {
    return this.customType6;
  }

  public void setCustomType6(String customType6) {
    this.customType6 = customType6;
  }

  public String getCustomItem1() {
    return this.customItem1;
  }

  public void setCustomItem1(String customItem1) {
    this.customItem1 = customItem1;
  }

  public String getCustomItem2() {
    return this.customItem2;
  }

  public void setCustomItem2(String customItem2) {
    this.customItem2 = customItem2;
  }

  public String getCustomItem3() {
    return this.customItem3;
  }

  public void setCustomItem3(String customItem3) {
    this.customItem3 = customItem3;
  }

  public String getCustomItemId4() {
    return this.customItemId4;
  }

  public void setCustomItemId4(String customItemId4) {
    this.customItemId4 = customItemId4;
  }

  public String getCustomItemId5() {
    return this.customItemId5;
  }

  public void setCustomItemId5(String customItemId5) {
    this.customItemId5 = customItemId5;
  }

  public String getCustomItemId6() {
    return this.customItemId6;
  }

  public void setCustomItemId6(String customItemId6) {
    this.customItemId6 = customItemId6;
  }

  public String getCustomerCategory() {
    return this.customerCategory;
  }

  public void setCustomerCategory(String customerCategory) {
    this.customerCategory = customerCategory;
  }

  public String getExceptionReason() {
    return this.exceptionReason;
  }

  public void setExceptionReason(String exceptionReason) {
    this.exceptionReason = exceptionReason;
  }

  public Integer getSalePersonId() {
    return this.salePersonId;
  }

  public void setSalePersonId(Integer salePersonId) {
    this.salePersonId = salePersonId;
  }

  public Integer getLinkmanNum() {
    return this.linkmanNum;
  }

  public void setLinkmanNum(Integer linkmanNum) {
    this.linkmanNum = linkmanNum;
  }

  public Date getLastLink() {
    return this.lastLink;
  }

  public void setLastLink(Date lastLink) {
    this.lastLink = lastLink;
  }

  public String getIsNewAdd() {
    return this.isNewAdd;
  }

  public void setIsNewAdd(String isNewAdd) {
    this.isNewAdd = isNewAdd;
  }

  public String getIsFollow() {
    return this.isFollow;
  }

  public void setIsFollow(String isFollow) {
    this.isFollow = isFollow;
  }

  public String getIsShare() {
    return this.isShare;
  }

  public void setIsShare(String isShare) {
    this.isShare = isShare;
  }

  public Date getCreateDate() {
    return this.createDate;
  }

  public void setCreateDate(Date createDate) {
    this.createDate = DateUtils.getDateByFormat(createDate, "yyyy-MM-dd");
  }

  public Date getUpdateCustomerDate() {
    return this.updateCustomerDate;
  }

  public void setUpdateCustomerDate(Date updateCustomerDate) {
    this.updateCustomerDate = updateCustomerDate;
  }

  public Date getUpdateSaleStageDate() {
    return this.updateSaleStageDate;
  }

  public void setUpdateSaleStageDate(Date updateSaleStageDate) {
    this.updateSaleStageDate = updateSaleStageDate;
  }

  public Date getUpdateSaleRecordDate() {
    return this.updateSaleRecordDate;
  }

  public void setUpdateSaleRecordDate(Date updateSaleRecordDate) {
    this.updateSaleRecordDate = updateSaleRecordDate;
  }

  public BigDecimal getHistoryContractCost() {
    return this.historyContractCost;
  }

  public void setHistoryContractCost(BigDecimal historyContractCost) {
    this.historyContractCost = historyContractCost;
  }

  public Integer getDiscardPersonId() {
    return this.discardPersonId;
  }

  public void setDiscardPersonId(Integer discardPersonId) {
    this.discardPersonId = discardPersonId;
  }

  public Integer getRestorePersonId() {
    return this.restorePersonId;
  }

  public void setRestorePersonId(Integer restorePersonId) {
    this.restorePersonId = restorePersonId;
  }

  public Date getRestoreDate() {
    return this.restoreDate;
  }

  public void setRestoreDate(Date restoreDate) {
    this.restoreDate = restoreDate;
  }

  public int getPageStartRow() {
    return this.pageStartRow;
  }

  public void setPageStartRow(int pageStartRow) {
    this.pageStartRow = pageStartRow;
  }

  public int getPageEndRow() {
    return this.pageEndRow;
  }

  public void setPageEndRow(int pageEndRow) {
    this.pageEndRow = pageEndRow;
  }

  public String getSalePerson() {
    return this.salePerson;
  }

  public void setSalePerson(String salePerson) {
    this.salePerson = salePerson;
  }

  public Integer getMyCustomers() {
    return this.myCustomers;
  }

  public void setMyCustomers(Integer myCustomers) {
    this.myCustomers = myCustomers;
  }

  public Integer getPersonId() {
    return this.personId;
  }

  public void setPersonId(Integer personId) {
    this.personId = personId;
  }

  public String getIsWrite() {
    return this.isWrite;
  }

  public void setIsWrite(String isWrite) {
    this.isWrite = isWrite;
  }

  public String getDeptIds() {
    return this.deptIds;
  }

  public void setDeptIds(String deptIds) {
    this.deptIds = deptIds;
  }

  public String getShareSalePersons() {
    return this.shareSalePersons;
  }

  public void setShareSalePersons(String shareSalePersons) {
    this.shareSalePersons = shareSalePersons;
  }

  public Integer getCustomerId() {
    return this.customerId;
  }

  public void setCustomerId(Integer customerId) {
    this.customerId = customerId;
  }

  public Integer getUpdatePersonId() {
    return this.updatePersonId;
  }

  public void setUpdatePersonId(Integer updatePersonId) {
    this.updatePersonId = updatePersonId;
  }

  public Date getUpdateDate() {
    return this.updateDate;
  }

  public void setUpdateDate(Date updateDate) {
    this.updateDate = updateDate;
  }

  public String getIsPrimitive() {
    return this.isPrimitive;
  }

  public void setIsPrimitive(String isPrimitive) {
    this.isPrimitive = isPrimitive;
  }

  public Integer getCurrentUserId() {
    return this.currentUserId;
  }

  public void setCurrentUserId(Integer currentUserId) {
    this.currentUserId = currentUserId;
  }

  public String getUpdatePerson() {
    return this.updatePerson;
  }

  public void setUpdatePerson(String updatePerson) {
    this.updatePerson = updatePerson;
  }

  public String getDeptIds2() {
    return this.deptIds2;
  }

  public void setDeptIds2(String deptIds2) {
    this.deptIds2 = deptIds2;
  }

  public Integer getSaleStageId() {
    return this.saleStageId;
  }

  public void setSaleStageId(Integer saleStageId) {
    this.saleStageId = saleStageId;
  }

  public Integer getDeptId() {
    return this.deptId;
  }

  public void setDeptId(Integer deptId) {
    this.deptId = deptId;
  }

  public String getSaleStage() {
    return this.saleStage;
  }

  public void setSaleStage(String saleStage) {
    this.saleStage = saleStage;
  }

  public String getCategorys() {
    return this.categorys;
  }

  public void setCategorys(String categorys) {
    this.categorys = categorys;
  }

  public Date getAgingDate() {
    return this.agingDate;
  }

  public void setAgingDate(Date agingDate) {
    this.agingDate = agingDate;
  }

  public Date getAgingCustomerDate() {
    return this.agingCustomerDate;
  }

  public void setAgingCustomerDate(Date agingCustomerDate) {
    this.agingCustomerDate = agingCustomerDate;
  }

  public Date getAgingSaleStageDate() {
    return this.agingSaleStageDate;
  }

  public void setAgingSaleStageDate(Date agingSaleStageDate) {
    this.agingSaleStageDate = agingSaleStageDate;
  }

  public Date getAgingSaleRecordDate() {
    return this.agingSaleRecordDate;
  }

  public void setAgingSaleRecordDate(Date agingSaleRecordDate) {
    this.agingSaleRecordDate = agingSaleRecordDate;
  }

  public String getDeptIdsEx() {
    return this.deptIdsEx;
  }

  public void setDeptIdsEx(String deptIdsEx) {
    this.deptIdsEx = deptIdsEx;
  }

  public String getDiscardPerson() {
    return this.discardPerson;
  }

  public void setDiscardPerson(String discardPerson) {
    this.discardPerson = discardPerson;
  }

  public Integer getSignCategory() {
    return this.signCategory;
  }

  public void setSignCategory(Integer signCategory) {
    this.signCategory = signCategory;
  }

  public String getPresentRecord() {
    return this.presentRecord;
  }

  public void setPresentRecord(String presentRecord) {
    this.presentRecord = presentRecord;
  }

  public Integer getMarketPersonId() {
    return this.marketPersonId;
  }

  public void setMarketPersonId(Integer marketPersonId) {
    this.marketPersonId = marketPersonId;
  }

  public String getMarketPerson() {
    return this.marketPerson;
  }

  public void setMarketPerson(String marketPerson) {
    this.marketPerson = marketPerson;
  }

  public String getSearchCustomerName() {
    return this.searchCustomerName;
  }

  public void setSearchCustomerName(String searchCustomerName) {
    this.searchCustomerName = searchCustomerName;
  }

  public Integer getIsSaleRecord() {
    return this.isSaleRecord;
  }

  public void setIsSaleRecord(Integer isSaleRecord) {
    this.isSaleRecord = isSaleRecord;
  }

  public Integer getLinkNum() {
    return this.linkNum;
  }

  public void setLinkNum(Integer linkNum) {
    this.linkNum = linkNum;
  }

  public Integer getContractNum() {
    return this.contractNum;
  }

  public void setContractNum(Integer contractNum) {
    this.contractNum = contractNum;
  }

  public BigDecimal getInvoiceCost() {
    return this.invoiceCost;
  }

  public void setInvoiceCost(BigDecimal invoiceCost) {
    this.invoiceCost = invoiceCost;
  }

  public BigDecimal getSaleCost() {
    return this.saleCost;
  }

  public void setSaleCost(BigDecimal saleCost) {
    this.saleCost = saleCost;
  }

  public BigDecimal getReceivable() {
    return this.receivable;
  }

  public void setReceivable(BigDecimal receivable) {
    this.receivable = receivable;
  }

  public Date getStartDate() {
    return this.startDate;
  }

  public void setStartDate(Date startDate) {
    this.startDate = startDate;
  }

  public Date getEndDate() {
    return this.endDate;
  }

  public void setEndDate(Date endDate) {
    this.endDate = endDate;
  }

  public Integer getIsNotSaleRecord() {
    return this.isNotSaleRecord;
  }

  public void setIsNotSaleRecord(Integer isNotSaleRecord) {
    this.isNotSaleRecord = isNotSaleRecord;
  }

  public List getLinkmans() {
    return this.linkmans;
  }

  public void setLinkmans(List linkmans) {
    this.linkmans = linkmans;
  }

  public List getSaleRecords() {
    return this.saleRecords;
  }

  public void setSaleRecords(List saleRecords) {
    this.saleRecords = saleRecords;
  }

  public List getSaleRecordAddeds() {
    return this.saleRecordAddeds;
  }

  public void setSaleRecordAddeds(List saleRecordAddeds) {
    this.saleRecordAddeds = saleRecordAddeds;
  }

  public String getIsSaleStage() {
    return this.isSaleStage;
  }

  public void setIsSaleStage(String isSaleStage) {
    this.isSaleStage = isSaleStage;
  }

  public Date getStartCreateDate() {
    return this.startCreateDate;
  }

  public void setStartCreateDate(Date startCreateDate) {
    this.startCreateDate = startCreateDate;
  }

  public Date getEndCreateDate() {
    return this.endCreateDate;
  }

  public void setEndCreateDate(Date endCreateDate) {
    this.endCreateDate = endCreateDate;
  }

  public Date getStartLastLinkDate() {
    return this.startLastLinkDate;
  }

  public void setStartLastLinkDate(Date startLastLinkDate) {
    this.startLastLinkDate = startLastLinkDate;
  }

  public Date getEndLastLinkDate() {
    return this.endLastLinkDate;
  }

  public void setEndLastLinkDate(Date endLastLinkDate) {
    this.endLastLinkDate = endLastLinkDate;
  }

  public String getIsOthersource() {
    return this.isOthersource;
  }

  public void setIsOthersource(String isOthersource) {
    this.isOthersource = isOthersource;
  }

  public BigDecimal getStartPredictCost() {
    return this.startPredictCost;
  }

  public void setStartPredictCost(BigDecimal startPredictCost) {
    this.startPredictCost = startPredictCost;
  }

  public BigDecimal getEndPredictCost() {
    return this.endPredictCost;
  }

  public void setEndPredictCost(BigDecimal endPredictCost) {
    this.endPredictCost = endPredictCost;
  }

  public Date getStartPredictContractDate() {
    return this.startPredictContractDate;
  }

  public void setStartPredictContractDate(Date startPredictContractDate) {
    this.startPredictContractDate = startPredictContractDate;
  }

  public Date getEndPredictContractDate() {
    return this.endPredictContractDate;
  }

  public void setEndPredictContractDate(Date endPredictContractDate) {
    this.endPredictContractDate = endPredictContractDate;
  }

  public Integer getPresentNum() {
    return this.presentNum;
  }

  public void setPresentNum(Integer presentNum) {
    this.presentNum = presentNum;
  }

  public String getIsNotHistoryContractCost() {
    return this.isNotHistoryContractCost;
  }

  public void setIsNotHistoryContractCost(String isNotHistoryContractCost) {
    this.isNotHistoryContractCost = isNotHistoryContractCost;
  }

  public Integer getPersonId2() {
    return this.personId2;
  }

  public void setPersonId2(Integer personId2) {
    this.personId2 = personId2;
  }

  public String getIsSortLastLink() {
    return this.isSortLastLink;
  }

  public void setIsSortLastLink(String isSortLastLink) {
    this.isSortLastLink = isSortLastLink;
  }

  public SaleRecord getSaleRecord() {
    return this.saleRecord;
  }

  public void setSaleRecord(SaleRecord saleRecord) {
    this.saleRecord = saleRecord;
  }

  public Date getAssignDate() {
    return this.assignDate;
  }

  public void setAssignDate(Date assignDate) {
    this.assignDate = assignDate;
  }

  public Date getStartLastLinkDate1() {
    return this.startLastLinkDate1;
  }

  public void setStartLastLinkDate1(Date startLastLinkDate1) {
    this.startLastLinkDate1 = startLastLinkDate1;
  }

  public Date getEndLastLinkDate1() {
    return this.endLastLinkDate1;
  }

  public void setEndLastLinkDate1(Date endLastLinkDate1) {
    this.endLastLinkDate1 = endLastLinkDate1;
  }

  public String getCreatePerson() {
    return this.createPerson;
  }

  public void setCreatePerson(String createPerson) {
    this.createPerson = createPerson;
  }

  public Integer getCreatePersonId() {
    return this.createPersonId;
  }

  public void setCreatePersonId(Integer createPersonId) {
    this.createPersonId = createPersonId;
  }

  public String getSaleStatus() {
    return this.saleStatus;
  }

  public void setSaleStatus(String saleStatus) {
    this.saleStatus = saleStatus;
  }

  public Date getViewDate() {
    return this.viewDate;
  }

  public void setViewDate(Date viewDate) {
    this.viewDate = viewDate;
  }

  public String getOrderByViewDate() {
    return this.orderByViewDate;
  }

  public void setOrderByViewDate(String orderByViewDate) {
    this.orderByViewDate = orderByViewDate;
  }

  public String getOrderBySaleStageDate() {
    return this.orderBySaleStageDate;
  }

  public void setOrderBySaleStageDate(String orderBySaleStageDate) {
    this.orderBySaleStageDate = orderBySaleStageDate;
  }

  public String getSortRecord() {
    return this.sortRecord;
  }

  public void setSortRecord(String sortRecord) {
    this.sortRecord = sortRecord;
  }

  public String getSortWay() {
    return this.sortWay;
  }

  public void setSortWay(String sortWay) {
    this.sortWay = sortWay;
  }

  public BigDecimal getTotalcontractCost() {
    return this.totalcontractCost;
  }

  public void setTotalcontractCost(BigDecimal totalcontractCost) {
    this.totalcontractCost = totalcontractCost;
  }

  public Integer getContractCount() {
    return this.contractCount;
  }

  public void setContractCount(Integer contractCount) {
    this.contractCount = contractCount;
  }

  public BigDecimal getTotalcostValue() {
    return this.totalcostValue;
  }

  public void setTotalcostValue(BigDecimal totalcostValue) {
    this.totalcostValue = totalcostValue;
  }

  public String getStageName() {
    return this.stageName;
  }

  public void setStageName(String stageName) {
    this.stageName = stageName;
  }

  public BigDecimal getAvgContractCost() {
    return this.avgContractCost;
  }

  public void setAvgContractCost(BigDecimal avgContractCost) {
    this.avgContractCost = avgContractCost;
  }

  public String getOrderByUpdateCustomerDate() {
    return this.orderByUpdateCustomerDate;
  }

  public void setOrderByUpdateCustomerDate(String orderByUpdateCustomerDate) {
    this.orderByUpdateCustomerDate = orderByUpdateCustomerDate;
  }
  
  public String getSummaryAddress() 
  {
	 if(this.address == null || this.address.length() < 10)
		 return this.address;
	 else	  
		 return this.address.substring(0, 10);
  }  
}